home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / etc / X11 / xinit / xinitrc
Text File  |  2006-04-12  |  918b  |  44 lines

  1. #!/bin/sh
  2. # $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
  3.  
  4. userresources=$HOME/.Xresources
  5. usermodmap=$HOME/.Xmodmap
  6. xinitdir=/usr/X11R6/lib/X11/xinit
  7. sysresources=$xinitdir/.Xresources
  8. sysmodmap=$xinitdir/.Xmodmap
  9.  
  10. # merge in defaults and keymaps
  11.  
  12. if [ -f $sysresources ]; then
  13.     xrdb -merge $sysresources
  14. fi
  15.  
  16. if [ -f $sysmodmap ]; then
  17.     xmodmap $sysmodmap
  18. fi
  19.  
  20. if [ -f $userresources ]; then
  21.     xrdb -merge $userresources
  22. fi
  23.  
  24. if [ -f $usermodmap ]; then
  25.     xmodmap $usermodmap
  26. fi
  27.  
  28. # First try ~/.xinitrc
  29. if [ -f "$HOME/.xinitrc" ]; then
  30.     XINITRC="$HOME/.xinitrc"
  31.     exec /bin/sh "$HOME/.xinitrc"
  32. # If not present, try the system default
  33. elif [ -n "`/etc/X11/chooser.sh`" ]; then
  34.     exec "`/etc/X11/chooser.sh`"
  35. # Failsafe
  36. else
  37.     # start some nice programs
  38.     twm &
  39.     xclock -geometry 50x50-1+1 &
  40.     xterm -geometry 80x50+494+51 &
  41.     xterm -geometry 80x20+494-0 &
  42.     exec xterm -geometry 80x66+0+0 -name login
  43. fi
  44.